package 代理模式.JDK动态代理;

public class Buyer implements IBuyer {
	// 模拟当前购票人
	private String name;

	public Buyer(String name) {
		this.name = name;
	}

	@Override
	public void login(String username, String password) {
		System.out.println("用户" + username + "使用密码：" + password + "已成功登录");
	}

	@Override
	public void buyTicket() {
		System.out.println(name + "正在购票");
	}
}
